import { createApp } from 'vue'
import './styles/common.scss'
import App from './App.vue'
import { setupRouter } from './router'
import { setupStore } from './store'
// 引入标尺
import 'vue3-sketch-ruler/lib/style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// createApp(App).mount('#app')
const setupAll = () => {
  const app = createApp(App)
  setupRouter(app)
  setupStore(app)
  app.use(ElementPlus)
  app.mount('#app')
}

setupAll()